package com.skt.domain.DTO;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

@Data
@Schema(description = "商家商品查询参数")
public class MerchantCostumeQueryDTO {
    
    @Schema(description = "页码", example = "1")
    @Min(value = 1, message = "页码不能小于1")
    private Integer pageNum = 1;
    
    @Schema(description = "页大小", example = "20")
    @Min(value = 1, message = "页大小不能小于1")
    @Max(value = 100, message = "页大小不能超过100")
    private Integer pageSize = 20;
    
    @Schema(description = "商品状态：0-待审核 1-审核通过 2-审核驳回 3-已上架 4-已下架", example = "1")
    private Integer status;
    
    @Schema(description = "分类ID", example = "1")
    private Long categoryId;
    
    @Schema(description = "搜索关键词", example = "汉服")
    private String keyword;
    
    @Schema(description = "排序字段：createTime-创建时间 rentalPrice-租金 stock-库存", example = "createTime")
    private String sortField;
    
    @Schema(description = "排序方向：asc-升序 desc-降序", example = "desc")
    private String sortOrder;
}